#include <stdio.h>
main()
{	 	        
    int a,b,c;
    for(a=1;a<=9;a++)     //2
        for(b=1;b<=9;b++)   //2
            for(c=1;c<=9;c++)    //2
            {	 	        
                 if(100*a+10*b+c+100*c+10*b+a==1333)   //2
                 {	 	        
                     printf("a=%d,b=%d,c=%d\n",a,b,c);  //1
                  }
            }
}